package com.myj.jim.dao;

import java.util.List;
import java.util.Map;

import com.myj.jim.domain.Role;
import com.myj.jim.domain.RoleAuthority;
import com.myj.jim.domain.bootstraptable.BootstrapTable;

public interface RoleDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
    
    List<Role> findPage(Map<String,Object> map);
    
    public int count(Map<String,Object> map);
    
    public int isExist(String roleno);
    
    public int saveRoleAuthority(Map<String, String> map);
    
    public List<RoleAuthority> selectRoleAuthorityByRoleno(String roleno);
    
    public void deleteRoleAuthorityByRoleno(String roleno);
}